package com.diligreat.service; 

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.diligreat.domain.Member;
import com.diligreat.mapper.MemberMapper;

/**  
 * @Author Bruce 
 * @Date 2012-10-4
 * @Comments
 */
@Service
public class MemberService {

	@Autowired
	private MemberMapper memberMapper;

	public Integer register(Member mem) {
		Integer id = memberMapper.insertMember(mem);
		
		return id;
	}

	public Member login(Member mem) {
		return memberMapper.login(mem);
	}
	
}
 